package com.control.qct.businesssteward.adapter;

import android.support.annotation.Nullable;

import com.control.qct.businesssteward.R;
import com.control.qct.businesssteward.model.CheckOperateModel;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2017/12/11 0011.
 */

public class CheckOperateAdapter extends BaseQuickAdapter<CheckOperateModel, BaseViewHolder> {
    public CheckOperateAdapter(@Nullable List<CheckOperateModel> data) {
        super(R.layout.rv_check_operate_item, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, CheckOperateModel item) {
        holder.setText(R.id.tv_check_name, item.getStateTitle()).setText(R.id.tv_checker, item.getChecker())
              .setText(R.id.tv_check_num, item.getNumber() + "").setText(R.id.tv_check_time, item.getActualDate());
    }
}
